package com.ziiwee.reduce.rest.condition.impls;

import com.ziiwee.reduce.rest.condition.Condition;
import com.ziiwee.reduce.rest.condition.ConditionVisitor;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.List;

/**
 * @author ziiwee
 * @date 2020/8/19
 */
@Data
@AllArgsConstructor
public class LogicConditionImpl implements LogicCondition {

    private LogicOperation operation;

    private List<Condition> values;

    @Override
    public <T> T accept(ConditionVisitor<T> visitor) {
        return visitor.visit(this);
    }
}
